package app;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import bean.Customer;
 
public class App 
{
    public static void main( String[] args )
    {
    	// Load spring configuration.
    	ApplicationContext context = 
    	  new ClassPathXmlApplicationContext(new String[] {"spring.xml"});
 
    	// Load customer bean in "spring.xml".
    	Customer cust = (Customer)context.getBean("customerBean");
    	System.out.println(cust);
    }
}